home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10082 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.ncl.ac.uk!usenet
  2. From: n5371200 <Daniel.Vedoy@ncl.ac.uk>
  3. Newsgroups: alt.msdos.programmer,comp.lang.c,comp.os.msdos.programmer,comp.programming
  4. Subject: Re: Writing to a file??
  5. Date: 15 Mar 1996 15:22:45 GMT
  6. Organization: Newcastle University
  7. Message-ID: <4ic205$e8b@whitbeck.ncl.ac.uk>
  8. References: <4huop2$fif@sam.inforamp.net>
  9. NNTP-Posting-Host: moss19.ncl.ac.uk
  10. X-Newsreader: WinVN 0.92.5
  11.  
  12. In article <4huop2$fif@sam.inforamp.net>, omega@inforamp.net (Erno Csanyi) says:
  13. >
  14. >Hey, everyone!
  15. >
  16. >I was wondering if there is any way to write data to an EXE file (or COM, 
  17. >preferably EXE) and still have the file work. You know, like for copy 
  18. >protection and all. I AM NOT WRITING A VIRUS, for all you concerned people. So 
  19. >if you do know how, or if there is a FAQ, a program, or other type of 
  20. >resource, please tell me. TIA (Thanx In Advance) :)
  21. >
  22. >- omega@inforamp.net
  23.  
  24. Yes, this is possible as long as you make sure you write code and data
  25. to the correct spaces in the file. If you are going to change any code
  26. in an already compiled file, I would suggest you use Borland's Turbo Debugger
  27. to find out where the code should be inserted, and write down the hex
  28. codes for the code you want to insert. Then you can use any disk editor to
  29. change the code you want to modify.
  30.  
  31. Dan
  32.